import Vue from 'vue'
// import { createApp } from 'vue'
import App from './App.vue'
// import axios from 'axios';
import axios from './http';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import router from './router'
import store from './store'
// import vueConfig from '../vue.config'

// import Axios from './http'
// const app = createApp(App)
// 给 axios 设置请求根路径
// Axios.defaults.baseURL = 'http://127.0.0.1:3007/api/'
// app.config.globalProperties.$axios = Axios
// app.config.globalProperties.$message = ElMessage;
// app.use(ElementPlus)

// Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$axios = axios;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')